/**
 * @Author: ls <ls-mac>
 * @Date:   2019-11-05 16:06:29
 * @Last modified by:   ls-mac
 * @Last modified time: 2019-11-05 16:11:46
 */
import request from '../utils/reqaxios';

// /service/add
// 服务新增
export async function serviceAdd(params) {
  return request({
    url: '/service/add',
    method: 'post',
    data: params,
  });
}

// /service/delete
// 服务删除
export async function serviceDelete(params) {
  return request({
    url: '/service/delete',
    method: 'post',
    data: params,
  });
}

// /service/detail
// 服务详情(小程序后台公用)
export async function serviceDetail(params) {
  return request({
    url: '/service/detail',
    method: 'post',
    data: params,
  });
}

// /service/edit
// 服务修改
export async function serviceEdit(params) {
  return request({
    url: '/service/edit',
    method: 'post',
    data: params,
  });
}

// /service/list
// 所有服务列表
export async function serviceList(params) {
  return request({
    url: '/service/list',
    method: 'post',
    data: params,
  });
}

// /service/page
// 服务分页列表
export async function servicePage(params) {
  return request({
    url: '/service/page',
    method: 'post',
    data: params,
  });
}

// /service/relation
// 查询套餐关联的服务列表(小程序后台公用)
export async function serviceRelation(params) {
  return request({
    url: '/service/relation',
    method: 'post',
    data: params,
  });
}

// /serviceDetail/delete
// 服务明细删除
export async function serviceDetailDelete(params) {
  return request({
    url: '/serviceDetail/delete',
    method: 'post',
    data: params,
  });
}
